package com.example.xianji.activity;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

import com.example.xianji.R;

public class Main_News_GuanLiActivity extends Activity implements OnClickListener {
    private RelativeLayout relativelayout_send_news, relativelayout_my_news;
    private RelativeLayout news_guanli_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main__news__guan_li);

        relativelayout_send_news = (RelativeLayout) findViewById(R.id.relativelayout_send_news);
        relativelayout_my_news = (RelativeLayout) findViewById(R.id.relativelayout_my_news);
        news_guanli_back = (RelativeLayout) findViewById(R.id.relative_news_guanli_back);
        news_guanli_back.setOnClickListener(this);
        relativelayout_my_news.setOnClickListener(this);
        relativelayout_send_news.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.relativelayout_send_news) {
            startActivity(new Intent(Main_News_GuanLiActivity.this, Main_Send_NewsActivity.class));
        } else if (v.getId() == R.id.relativelayout_my_news) {
            startActivity(new Intent(Main_News_GuanLiActivity.this, Main_My_NewsActivity.class));
        } else if (v.getId() == R.id.relative_news_guanli_back) {
            this.finish();
        }
    }
}